package com.chinasofti.zbest.service;


import com.chinasofti.zbest.dao.model.Product;
import com.chinasofti.zbest.dao.model.ShopCart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinasofti.zbest.service.info.ProductCartInfo;


import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author zbest
 * @since 2019-05-28
 */
public interface IShopCartService extends IService<ShopCart> {
      List<ShopCart> query(int userId);
      Product queryByProNum(String proNum);
      void addProduct(ShopCart shopCart);

      void del(Integer userId, String productNumber);

      ShopCart queryForReduce(String productNumber);

      void reduceCountByProductNumber(String productNumber, Integer productCount,Double countPrice);

      ShopCart queryByCartId(Integer shopCartId);
}
